package com.purchase.ml.bean.req.mail;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author :zxm
 * @date :2021/3/5 15:14
 * @description :some description
 **/
@Data
public class MailDto {

    @ApiModelProperty(value="邮箱")
    @NotBlank(message = "Emel tidak boleh kosong")
    @Pattern(regexp = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$",message = "Format emel salah")
    private String email;
}
